{include 'header.tpl'}
<ol class="breadcrumb">
    <li><a href="/adminmall/User/list">小红薯商城用户列表</a></li>
</ol>
<form method="get" action="/adminmall/User/list" class="form-inline">
    <table>
        <tr>
            <td>
                <label for="form-w" class="control-label">昵称：</label>
                <input class="form-control" id="username" name="username" value="{$smarty.get.username}" placeholder="" size="6"/>
            </td>
            <td>
                <label for="form-w" class="control-label">联系电话：</label>
                <input class="form-control" id="mobile" name="mobile" value="{$smarty.get.mobile}" placeholder="" size="10"/>
            </td>

            <td>
                <label for="form-w" class="control-label">时间范围：</label>
                <input type="text" class="date-picker" id="begin_date" name="begin_date" value="{$smarty.get.begin_date}" style="width: 85px;"/> 至 <input type="text" class="date-picker" id="end_date" name="end_date" value="{$smarty.get.end_date}" style="width: 85px;"/>
            </td>

            <td>
                <button type="submit" class="btn btn-primary">查找</button>
                <a href="/adminmall/Goods/add" class="btn btn-danger">添加商品</a>
                {*<button type="button" onclick="dao()" class="btn btn-primary">导出</button>*}
            </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <tr>
        <td>商品ID</td>
        <td>商品名称</td>
        <td>商品图片</td>
        <td>商品状态</td>
        <td>排序</td>
        <td>创建时间</td>
        <td>操作</td>
    </tr>
    {foreach from=$data item=item}
        <tr>
            <td>{$item.uid}</td>
            <td>{$item.username}</td>
            <td>{if $item.avatar neq ''}<img src="{$item.avatar}" width="50px">{/if}</td>
            <td>{$item.cell_phone}</td>
            <td>
                {if $item.gender eq 1}男性{/if}
                {if $item.gender eq 2}女性{/if}
            </td>
            {*<td>{$item.pro}--{$item.cit}{$item.address}</td>*}
            <td>{$item.create_time}</td>
            <td>
                <span style="color: #4cae4c">{if $item.status eq 1}正常{/if}</span>
                <span style="color: #ff3b36">{if $item.status eq 2}禁用{/if}</span>
                <span style="color: #ff3b36">{if $item.status eq 3}删除{/if}</span>
            </td>
            <td>
                <a href="/adminmall/User/modify?uid={$item.uid}" rel="">修改</a>
                <a onclick="return confirm('确定要删除此域名？');" href="/adminmall/User/modifyStatus?uid={$item.uid}&status=3"  rel="ajax" >删除</a>
            </td>
        </tr>
    {/foreach}
</table>
{include "pager.tpl"}
<script type="text/javascript">
    $(function () {
        create_date_picker();
    });
</script>
{include 'footer.tpl'}